package com.idealighter.game.games.fqzs.handler;

import com.idealighter.game.core.annotation.ResMsgHandler;
import com.idealighter.game.message.ModuleMsgIdConstant;
import com.idealighter.game.message.core.ResMessage;
import com.idealighter.game.robot.common.PlayerPosition;
import com.idealighter.game.robot.core.Player;
import com.idealighter.game.robot.handler.ResMessageHandler;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;



@ResMsgHandler(ModuleMsgIdConstant.Fqzs.FAST_ENTER_TABLE)
public class ResFastEnterTableHandler implements ResMessageHandler {

  private static final Logger LOG = LoggerFactory.getLogger(ResFastEnterTableHandler.class);

  @Override
  public void action(Player player, ResMessage message) {
    // ResFastEnterTableMsg msg = (ResFastEnterTableMsg) message;
    player.position = PlayerPosition.TABLE;
    LOG.info("[飞禽走兽]玩家[{}][{}]进入桌子[{}]成功", player.userName, player.playerId,
        player.table(player.playerId).getId());
  }
}
